package main.java.com.extract.sub;

public class LaborItem extends JobItem {

    private Employee employee;

    protected LaborItem(int quantity, Employee employee) {
        super(0, quantity);
        this.employee = employee;
    }

    @Override
    public int getUnitPrice() {
        return employee.getRate();
    }

    public void setUnitPrice(int unitPrice) {
        this.unitPrice = unitPrice;
    }


    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }


    @Override
    protected boolean isLabor() {
        return true;
    }
}
